(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
terms(N) → cons(recip(sqr(N)), terms(s(N)))
sqr(0) → 0
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0) → 0
dbl(s(X)) → s(s(dbl(X)))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
first(0, X) → nil
first(s(X), cons(Y, Z)) → cons(Y, first(X, Z))
half(0) → 0
half(s(0)) → 0
half(s(s(X))) → s(half(X))
half(dbl(X)) → X
Rewrite Strategy: FULL
(1) RenamingProof (EQUIVALENT transformation)
Renamed function symbols to avoid clashes with predefined symbol.
(2) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
terms(N) → cons(recip(sqr(N)), terms(s(N)))
sqr(0') → 0'
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0') → 0'
dbl(s(X)) → s(s(dbl(X)))
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
first(0', X) → nil
first(s(X), cons(Y, Z)) → cons(Y, first(X, Z))
half(0') → 0'
half(s(0')) → 0'
half(s(s(X))) → s(half(X))
half(dbl(X)) → X
S is empty.
Rewrite Strategy: FULL
(3) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)
Infered types.
(4) Obligation:
TRS:
Rules:
terms(N) → cons(recip(sqr(N)), terms(s(N)))
sqr(0') → 0'
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0') → 0'
dbl(s(X)) → s(s(dbl(X)))
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
first(0', X) → nil
first(s(X), cons(Y, Z)) → cons(Y, first(X, Z))
half(0') → 0'
half(s(0')) → 0'
half(s(s(X))) → s(half(X))
half(dbl(X)) → X
Types:
terms :: s:0' → cons:nil
cons :: recip → cons:nil → cons:nil
recip :: s:0' → recip
sqr :: s:0' → s:0'
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → cons:nil → cons:nil
nil :: cons:nil
half :: s:0' → s:0'
hole_cons:nil1_0 :: cons:nil
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_cons:nil4_0 :: Nat → cons:nil
gen_s:0'5_0 :: Nat → s:0'
(5) OrderProof (LOWER BOUND(ID) transformation)
Heuristically decided to analyse the following defined symbols:
terms,
sqr,
add,
dbl,
first,
halfThey will be analysed ascendingly in the following order:
sqr < terms
add < sqr
dbl < sqr
(6) Obligation:
TRS:
Rules:
terms(
N) →
cons(
recip(
sqr(
N)),
terms(
s(
N)))
sqr(
0') →
0'sqr(
s(
X)) →
s(
add(
sqr(
X),
dbl(
X)))
dbl(
0') →
0'dbl(
s(
X)) →
s(
s(
dbl(
X)))
add(
0',
X) →
Xadd(
s(
X),
Y) →
s(
add(
X,
Y))
first(
0',
X) →
nilfirst(
s(
X),
cons(
Y,
Z)) →
cons(
Y,
first(
X,
Z))
half(
0') →
0'half(
s(
0')) →
0'half(
s(
s(
X))) →
s(
half(
X))
half(
dbl(
X)) →
XTypes:
terms :: s:0' → cons:nil
cons :: recip → cons:nil → cons:nil
recip :: s:0' → recip
sqr :: s:0' → s:0'
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → cons:nil → cons:nil
nil :: cons:nil
half :: s:0' → s:0'
hole_cons:nil1_0 :: cons:nil
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_cons:nil4_0 :: Nat → cons:nil
gen_s:0'5_0 :: Nat → s:0'
Generator Equations:
gen_cons:nil4_0(0) ⇔ nil
gen_cons:nil4_0(+(x, 1)) ⇔ cons(recip(0'), gen_cons:nil4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))
The following defined symbols remain to be analysed:
add, terms, sqr, dbl, first, half
They will be analysed ascendingly in the following order:
sqr < terms
add < sqr
dbl < sqr
(7) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
add(
gen_s:0'5_0(
n7_0),
gen_s:0'5_0(
b)) →
gen_s:0'5_0(
+(
n7_0,
b)), rt ∈ Ω(1 + n7
0)
Induction Base:
add(gen_s:0'5_0(0), gen_s:0'5_0(b)) →RΩ(1)
gen_s:0'5_0(b)
Induction Step:
add(gen_s:0'5_0(+(n7_0, 1)), gen_s:0'5_0(b)) →RΩ(1)
s(add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b))) →IH
s(gen_s:0'5_0(+(b, c8_0)))
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(8) Complex Obligation (BEST)
(9) Obligation:
TRS:
Rules:
terms(
N) →
cons(
recip(
sqr(
N)),
terms(
s(
N)))
sqr(
0') →
0'sqr(
s(
X)) →
s(
add(
sqr(
X),
dbl(
X)))
dbl(
0') →
0'dbl(
s(
X)) →
s(
s(
dbl(
X)))
add(
0',
X) →
Xadd(
s(
X),
Y) →
s(
add(
X,
Y))
first(
0',
X) →
nilfirst(
s(
X),
cons(
Y,
Z)) →
cons(
Y,
first(
X,
Z))
half(
0') →
0'half(
s(
0')) →
0'half(
s(
s(
X))) →
s(
half(
X))
half(
dbl(
X)) →
XTypes:
terms :: s:0' → cons:nil
cons :: recip → cons:nil → cons:nil
recip :: s:0' → recip
sqr :: s:0' → s:0'
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → cons:nil → cons:nil
nil :: cons:nil
half :: s:0' → s:0'
hole_cons:nil1_0 :: cons:nil
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_cons:nil4_0 :: Nat → cons:nil
gen_s:0'5_0 :: Nat → s:0'
Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
Generator Equations:
gen_cons:nil4_0(0) ⇔ nil
gen_cons:nil4_0(+(x, 1)) ⇔ cons(recip(0'), gen_cons:nil4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))
The following defined symbols remain to be analysed:
dbl, terms, sqr, first, half
They will be analysed ascendingly in the following order:
sqr < terms
dbl < sqr
(10) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
dbl(
gen_s:0'5_0(
n770_0)) →
gen_s:0'5_0(
*(
2,
n770_0)), rt ∈ Ω(1 + n770
0)
Induction Base:
dbl(gen_s:0'5_0(0)) →RΩ(1)
0'
Induction Step:
dbl(gen_s:0'5_0(+(n770_0, 1))) →RΩ(1)
s(s(dbl(gen_s:0'5_0(n770_0)))) →IH
s(s(gen_s:0'5_0(*(2, c771_0))))
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(11) Complex Obligation (BEST)
(12) Obligation:
TRS:
Rules:
terms(
N) →
cons(
recip(
sqr(
N)),
terms(
s(
N)))
sqr(
0') →
0'sqr(
s(
X)) →
s(
add(
sqr(
X),
dbl(
X)))
dbl(
0') →
0'dbl(
s(
X)) →
s(
s(
dbl(
X)))
add(
0',
X) →
Xadd(
s(
X),
Y) →
s(
add(
X,
Y))
first(
0',
X) →
nilfirst(
s(
X),
cons(
Y,
Z)) →
cons(
Y,
first(
X,
Z))
half(
0') →
0'half(
s(
0')) →
0'half(
s(
s(
X))) →
s(
half(
X))
half(
dbl(
X)) →
XTypes:
terms :: s:0' → cons:nil
cons :: recip → cons:nil → cons:nil
recip :: s:0' → recip
sqr :: s:0' → s:0'
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → cons:nil → cons:nil
nil :: cons:nil
half :: s:0' → s:0'
hole_cons:nil1_0 :: cons:nil
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_cons:nil4_0 :: Nat → cons:nil
gen_s:0'5_0 :: Nat → s:0'
Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
dbl(gen_s:0'5_0(n770_0)) → gen_s:0'5_0(*(2, n770_0)), rt ∈ Ω(1 + n7700)
Generator Equations:
gen_cons:nil4_0(0) ⇔ nil
gen_cons:nil4_0(+(x, 1)) ⇔ cons(recip(0'), gen_cons:nil4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))
The following defined symbols remain to be analysed:
sqr, terms, first, half
They will be analysed ascendingly in the following order:
sqr < terms
(13) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
sqr(
gen_s:0'5_0(
n1072_0)) →
gen_s:0'5_0(
*(
n1072_0,
n1072_0)), rt ∈ Ω(1 + n1072
0 + n1072
02 + n1072
03)
Induction Base:
sqr(gen_s:0'5_0(0)) →RΩ(1)
0'
Induction Step:
sqr(gen_s:0'5_0(+(n1072_0, 1))) →RΩ(1)
s(add(sqr(gen_s:0'5_0(n1072_0)), dbl(gen_s:0'5_0(n1072_0)))) →IH
s(add(gen_s:0'5_0(*(c1073_0, c1073_0)), dbl(gen_s:0'5_0(n1072_0)))) →LΩ(1 + n10720)
s(add(gen_s:0'5_0(*(n1072_0, n1072_0)), gen_s:0'5_0(*(2, n1072_0)))) →LΩ(1 + n107202)
s(gen_s:0'5_0(+(*(n1072_0, n1072_0), *(2, n1072_0))))
We have rt ∈ Ω(n3) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n3).
(14) Complex Obligation (BEST)
(15) Obligation:
TRS:
Rules:
terms(
N) →
cons(
recip(
sqr(
N)),
terms(
s(
N)))
sqr(
0') →
0'sqr(
s(
X)) →
s(
add(
sqr(
X),
dbl(
X)))
dbl(
0') →
0'dbl(
s(
X)) →
s(
s(
dbl(
X)))
add(
0',
X) →
Xadd(
s(
X),
Y) →
s(
add(
X,
Y))
first(
0',
X) →
nilfirst(
s(
X),
cons(
Y,
Z)) →
cons(
Y,
first(
X,
Z))
half(
0') →
0'half(
s(
0')) →
0'half(
s(
s(
X))) →
s(
half(
X))
half(
dbl(
X)) →
XTypes:
terms :: s:0' → cons:nil
cons :: recip → cons:nil → cons:nil
recip :: s:0' → recip
sqr :: s:0' → s:0'
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → cons:nil → cons:nil
nil :: cons:nil
half :: s:0' → s:0'
hole_cons:nil1_0 :: cons:nil
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_cons:nil4_0 :: Nat → cons:nil
gen_s:0'5_0 :: Nat → s:0'
Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
dbl(gen_s:0'5_0(n770_0)) → gen_s:0'5_0(*(2, n770_0)), rt ∈ Ω(1 + n7700)
sqr(gen_s:0'5_0(n1072_0)) → gen_s:0'5_0(*(n1072_0, n1072_0)), rt ∈ Ω(1 + n10720 + n107202 + n107203)
Generator Equations:
gen_cons:nil4_0(0) ⇔ nil
gen_cons:nil4_0(+(x, 1)) ⇔ cons(recip(0'), gen_cons:nil4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))
The following defined symbols remain to be analysed:
terms, first, half
(16) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol terms.
(17) Obligation:
TRS:
Rules:
terms(
N) →
cons(
recip(
sqr(
N)),
terms(
s(
N)))
sqr(
0') →
0'sqr(
s(
X)) →
s(
add(
sqr(
X),
dbl(
X)))
dbl(
0') →
0'dbl(
s(
X)) →
s(
s(
dbl(
X)))
add(
0',
X) →
Xadd(
s(
X),
Y) →
s(
add(
X,
Y))
first(
0',
X) →
nilfirst(
s(
X),
cons(
Y,
Z)) →
cons(
Y,
first(
X,
Z))
half(
0') →
0'half(
s(
0')) →
0'half(
s(
s(
X))) →
s(
half(
X))
half(
dbl(
X)) →
XTypes:
terms :: s:0' → cons:nil
cons :: recip → cons:nil → cons:nil
recip :: s:0' → recip
sqr :: s:0' → s:0'
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → cons:nil → cons:nil
nil :: cons:nil
half :: s:0' → s:0'
hole_cons:nil1_0 :: cons:nil
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_cons:nil4_0 :: Nat → cons:nil
gen_s:0'5_0 :: Nat → s:0'
Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
dbl(gen_s:0'5_0(n770_0)) → gen_s:0'5_0(*(2, n770_0)), rt ∈ Ω(1 + n7700)
sqr(gen_s:0'5_0(n1072_0)) → gen_s:0'5_0(*(n1072_0, n1072_0)), rt ∈ Ω(1 + n10720 + n107202 + n107203)
Generator Equations:
gen_cons:nil4_0(0) ⇔ nil
gen_cons:nil4_0(+(x, 1)) ⇔ cons(recip(0'), gen_cons:nil4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))
The following defined symbols remain to be analysed:
first, half
(18) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
first(
gen_s:0'5_0(
n1762_0),
gen_cons:nil4_0(
n1762_0)) →
gen_cons:nil4_0(
n1762_0), rt ∈ Ω(1 + n1762
0)
Induction Base:
first(gen_s:0'5_0(0), gen_cons:nil4_0(0)) →RΩ(1)
nil
Induction Step:
first(gen_s:0'5_0(+(n1762_0, 1)), gen_cons:nil4_0(+(n1762_0, 1))) →RΩ(1)
cons(recip(0'), first(gen_s:0'5_0(n1762_0), gen_cons:nil4_0(n1762_0))) →IH
cons(recip(0'), gen_cons:nil4_0(c1763_0))
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(19) Complex Obligation (BEST)
(20) Obligation:
TRS:
Rules:
terms(
N) →
cons(
recip(
sqr(
N)),
terms(
s(
N)))
sqr(
0') →
0'sqr(
s(
X)) →
s(
add(
sqr(
X),
dbl(
X)))
dbl(
0') →
0'dbl(
s(
X)) →
s(
s(
dbl(
X)))
add(
0',
X) →
Xadd(
s(
X),
Y) →
s(
add(
X,
Y))
first(
0',
X) →
nilfirst(
s(
X),
cons(
Y,
Z)) →
cons(
Y,
first(
X,
Z))
half(
0') →
0'half(
s(
0')) →
0'half(
s(
s(
X))) →
s(
half(
X))
half(
dbl(
X)) →
XTypes:
terms :: s:0' → cons:nil
cons :: recip → cons:nil → cons:nil
recip :: s:0' → recip
sqr :: s:0' → s:0'
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → cons:nil → cons:nil
nil :: cons:nil
half :: s:0' → s:0'
hole_cons:nil1_0 :: cons:nil
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_cons:nil4_0 :: Nat → cons:nil
gen_s:0'5_0 :: Nat → s:0'
Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
dbl(gen_s:0'5_0(n770_0)) → gen_s:0'5_0(*(2, n770_0)), rt ∈ Ω(1 + n7700)
sqr(gen_s:0'5_0(n1072_0)) → gen_s:0'5_0(*(n1072_0, n1072_0)), rt ∈ Ω(1 + n10720 + n107202 + n107203)
first(gen_s:0'5_0(n1762_0), gen_cons:nil4_0(n1762_0)) → gen_cons:nil4_0(n1762_0), rt ∈ Ω(1 + n17620)
Generator Equations:
gen_cons:nil4_0(0) ⇔ nil
gen_cons:nil4_0(+(x, 1)) ⇔ cons(recip(0'), gen_cons:nil4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))
The following defined symbols remain to be analysed:
half
(21) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
half(
gen_s:0'5_0(
*(
2,
n2103_0))) →
gen_s:0'5_0(
n2103_0), rt ∈ Ω(1 + n2103
0)
Induction Base:
half(gen_s:0'5_0(*(2, 0))) →RΩ(1)
0'
Induction Step:
half(gen_s:0'5_0(*(2, +(n2103_0, 1)))) →RΩ(1)
s(half(gen_s:0'5_0(*(2, n2103_0)))) →IH
s(gen_s:0'5_0(c2104_0))
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(22) Complex Obligation (BEST)
(23) Obligation:
TRS:
Rules:
terms(
N) →
cons(
recip(
sqr(
N)),
terms(
s(
N)))
sqr(
0') →
0'sqr(
s(
X)) →
s(
add(
sqr(
X),
dbl(
X)))
dbl(
0') →
0'dbl(
s(
X)) →
s(
s(
dbl(
X)))
add(
0',
X) →
Xadd(
s(
X),
Y) →
s(
add(
X,
Y))
first(
0',
X) →
nilfirst(
s(
X),
cons(
Y,
Z)) →
cons(
Y,
first(
X,
Z))
half(
0') →
0'half(
s(
0')) →
0'half(
s(
s(
X))) →
s(
half(
X))
half(
dbl(
X)) →
XTypes:
terms :: s:0' → cons:nil
cons :: recip → cons:nil → cons:nil
recip :: s:0' → recip
sqr :: s:0' → s:0'
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → cons:nil → cons:nil
nil :: cons:nil
half :: s:0' → s:0'
hole_cons:nil1_0 :: cons:nil
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_cons:nil4_0 :: Nat → cons:nil
gen_s:0'5_0 :: Nat → s:0'
Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
dbl(gen_s:0'5_0(n770_0)) → gen_s:0'5_0(*(2, n770_0)), rt ∈ Ω(1 + n7700)
sqr(gen_s:0'5_0(n1072_0)) → gen_s:0'5_0(*(n1072_0, n1072_0)), rt ∈ Ω(1 + n10720 + n107202 + n107203)
first(gen_s:0'5_0(n1762_0), gen_cons:nil4_0(n1762_0)) → gen_cons:nil4_0(n1762_0), rt ∈ Ω(1 + n17620)
half(gen_s:0'5_0(*(2, n2103_0))) → gen_s:0'5_0(n2103_0), rt ∈ Ω(1 + n21030)
Generator Equations:
gen_cons:nil4_0(0) ⇔ nil
gen_cons:nil4_0(+(x, 1)) ⇔ cons(recip(0'), gen_cons:nil4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))
No more defined symbols left to analyse.
(24) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n3) was proven with the following lemma:
sqr(gen_s:0'5_0(n1072_0)) → gen_s:0'5_0(*(n1072_0, n1072_0)), rt ∈ Ω(1 + n10720 + n107202 + n107203)
(25) BOUNDS(n^3, INF)
(26) Obligation:
TRS:
Rules:
terms(
N) →
cons(
recip(
sqr(
N)),
terms(
s(
N)))
sqr(
0') →
0'sqr(
s(
X)) →
s(
add(
sqr(
X),
dbl(
X)))
dbl(
0') →
0'dbl(
s(
X)) →
s(
s(
dbl(
X)))
add(
0',
X) →
Xadd(
s(
X),
Y) →
s(
add(
X,
Y))
first(
0',
X) →
nilfirst(
s(
X),
cons(
Y,
Z)) →
cons(
Y,
first(
X,
Z))
half(
0') →
0'half(
s(
0')) →
0'half(
s(
s(
X))) →
s(
half(
X))
half(
dbl(
X)) →
XTypes:
terms :: s:0' → cons:nil
cons :: recip → cons:nil → cons:nil
recip :: s:0' → recip
sqr :: s:0' → s:0'
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → cons:nil → cons:nil
nil :: cons:nil
half :: s:0' → s:0'
hole_cons:nil1_0 :: cons:nil
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_cons:nil4_0 :: Nat → cons:nil
gen_s:0'5_0 :: Nat → s:0'
Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
dbl(gen_s:0'5_0(n770_0)) → gen_s:0'5_0(*(2, n770_0)), rt ∈ Ω(1 + n7700)
sqr(gen_s:0'5_0(n1072_0)) → gen_s:0'5_0(*(n1072_0, n1072_0)), rt ∈ Ω(1 + n10720 + n107202 + n107203)
first(gen_s:0'5_0(n1762_0), gen_cons:nil4_0(n1762_0)) → gen_cons:nil4_0(n1762_0), rt ∈ Ω(1 + n17620)
half(gen_s:0'5_0(*(2, n2103_0))) → gen_s:0'5_0(n2103_0), rt ∈ Ω(1 + n21030)
Generator Equations:
gen_cons:nil4_0(0) ⇔ nil
gen_cons:nil4_0(+(x, 1)) ⇔ cons(recip(0'), gen_cons:nil4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))
No more defined symbols left to analyse.
(27) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n3) was proven with the following lemma:
sqr(gen_s:0'5_0(n1072_0)) → gen_s:0'5_0(*(n1072_0, n1072_0)), rt ∈ Ω(1 + n10720 + n107202 + n107203)
(28) BOUNDS(n^3, INF)
(29) Obligation:
TRS:
Rules:
terms(
N) →
cons(
recip(
sqr(
N)),
terms(
s(
N)))
sqr(
0') →
0'sqr(
s(
X)) →
s(
add(
sqr(
X),
dbl(
X)))
dbl(
0') →
0'dbl(
s(
X)) →
s(
s(
dbl(
X)))
add(
0',
X) →
Xadd(
s(
X),
Y) →
s(
add(
X,
Y))
first(
0',
X) →
nilfirst(
s(
X),
cons(
Y,
Z)) →
cons(
Y,
first(
X,
Z))
half(
0') →
0'half(
s(
0')) →
0'half(
s(
s(
X))) →
s(
half(
X))
half(
dbl(
X)) →
XTypes:
terms :: s:0' → cons:nil
cons :: recip → cons:nil → cons:nil
recip :: s:0' → recip
sqr :: s:0' → s:0'
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → cons:nil → cons:nil
nil :: cons:nil
half :: s:0' → s:0'
hole_cons:nil1_0 :: cons:nil
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_cons:nil4_0 :: Nat → cons:nil
gen_s:0'5_0 :: Nat → s:0'
Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
dbl(gen_s:0'5_0(n770_0)) → gen_s:0'5_0(*(2, n770_0)), rt ∈ Ω(1 + n7700)
sqr(gen_s:0'5_0(n1072_0)) → gen_s:0'5_0(*(n1072_0, n1072_0)), rt ∈ Ω(1 + n10720 + n107202 + n107203)
first(gen_s:0'5_0(n1762_0), gen_cons:nil4_0(n1762_0)) → gen_cons:nil4_0(n1762_0), rt ∈ Ω(1 + n17620)
Generator Equations:
gen_cons:nil4_0(0) ⇔ nil
gen_cons:nil4_0(+(x, 1)) ⇔ cons(recip(0'), gen_cons:nil4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))
No more defined symbols left to analyse.
(30) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n3) was proven with the following lemma:
sqr(gen_s:0'5_0(n1072_0)) → gen_s:0'5_0(*(n1072_0, n1072_0)), rt ∈ Ω(1 + n10720 + n107202 + n107203)
(31) BOUNDS(n^3, INF)
(32) Obligation:
TRS:
Rules:
terms(
N) →
cons(
recip(
sqr(
N)),
terms(
s(
N)))
sqr(
0') →
0'sqr(
s(
X)) →
s(
add(
sqr(
X),
dbl(
X)))
dbl(
0') →
0'dbl(
s(
X)) →
s(
s(
dbl(
X)))
add(
0',
X) →
Xadd(
s(
X),
Y) →
s(
add(
X,
Y))
first(
0',
X) →
nilfirst(
s(
X),
cons(
Y,
Z)) →
cons(
Y,
first(
X,
Z))
half(
0') →
0'half(
s(
0')) →
0'half(
s(
s(
X))) →
s(
half(
X))
half(
dbl(
X)) →
XTypes:
terms :: s:0' → cons:nil
cons :: recip → cons:nil → cons:nil
recip :: s:0' → recip
sqr :: s:0' → s:0'
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → cons:nil → cons:nil
nil :: cons:nil
half :: s:0' → s:0'
hole_cons:nil1_0 :: cons:nil
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_cons:nil4_0 :: Nat → cons:nil
gen_s:0'5_0 :: Nat → s:0'
Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
dbl(gen_s:0'5_0(n770_0)) → gen_s:0'5_0(*(2, n770_0)), rt ∈ Ω(1 + n7700)
sqr(gen_s:0'5_0(n1072_0)) → gen_s:0'5_0(*(n1072_0, n1072_0)), rt ∈ Ω(1 + n10720 + n107202 + n107203)
Generator Equations:
gen_cons:nil4_0(0) ⇔ nil
gen_cons:nil4_0(+(x, 1)) ⇔ cons(recip(0'), gen_cons:nil4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))
No more defined symbols left to analyse.
(33) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n3) was proven with the following lemma:
sqr(gen_s:0'5_0(n1072_0)) → gen_s:0'5_0(*(n1072_0, n1072_0)), rt ∈ Ω(1 + n10720 + n107202 + n107203)
(34) BOUNDS(n^3, INF)
(35) Obligation:
TRS:
Rules:
terms(
N) →
cons(
recip(
sqr(
N)),
terms(
s(
N)))
sqr(
0') →
0'sqr(
s(
X)) →
s(
add(
sqr(
X),
dbl(
X)))
dbl(
0') →
0'dbl(
s(
X)) →
s(
s(
dbl(
X)))
add(
0',
X) →
Xadd(
s(
X),
Y) →
s(
add(
X,
Y))
first(
0',
X) →
nilfirst(
s(
X),
cons(
Y,
Z)) →
cons(
Y,
first(
X,
Z))
half(
0') →
0'half(
s(
0')) →
0'half(
s(
s(
X))) →
s(
half(
X))
half(
dbl(
X)) →
XTypes:
terms :: s:0' → cons:nil
cons :: recip → cons:nil → cons:nil
recip :: s:0' → recip
sqr :: s:0' → s:0'
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → cons:nil → cons:nil
nil :: cons:nil
half :: s:0' → s:0'
hole_cons:nil1_0 :: cons:nil
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_cons:nil4_0 :: Nat → cons:nil
gen_s:0'5_0 :: Nat → s:0'
Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
dbl(gen_s:0'5_0(n770_0)) → gen_s:0'5_0(*(2, n770_0)), rt ∈ Ω(1 + n7700)
Generator Equations:
gen_cons:nil4_0(0) ⇔ nil
gen_cons:nil4_0(+(x, 1)) ⇔ cons(recip(0'), gen_cons:nil4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))
No more defined symbols left to analyse.
(36) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
(37) BOUNDS(n^1, INF)
(38) Obligation:
TRS:
Rules:
terms(
N) →
cons(
recip(
sqr(
N)),
terms(
s(
N)))
sqr(
0') →
0'sqr(
s(
X)) →
s(
add(
sqr(
X),
dbl(
X)))
dbl(
0') →
0'dbl(
s(
X)) →
s(
s(
dbl(
X)))
add(
0',
X) →
Xadd(
s(
X),
Y) →
s(
add(
X,
Y))
first(
0',
X) →
nilfirst(
s(
X),
cons(
Y,
Z)) →
cons(
Y,
first(
X,
Z))
half(
0') →
0'half(
s(
0')) →
0'half(
s(
s(
X))) →
s(
half(
X))
half(
dbl(
X)) →
XTypes:
terms :: s:0' → cons:nil
cons :: recip → cons:nil → cons:nil
recip :: s:0' → recip
sqr :: s:0' → s:0'
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → cons:nil → cons:nil
nil :: cons:nil
half :: s:0' → s:0'
hole_cons:nil1_0 :: cons:nil
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_cons:nil4_0 :: Nat → cons:nil
gen_s:0'5_0 :: Nat → s:0'
Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
Generator Equations:
gen_cons:nil4_0(0) ⇔ nil
gen_cons:nil4_0(+(x, 1)) ⇔ cons(recip(0'), gen_cons:nil4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))
No more defined symbols left to analyse.
(39) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
(40) BOUNDS(n^1, INF)